<?php
class Macys_Api_V2_Catalog_Category_CategoryPages {

	private $categoryId;
	private $categoryName;
	private $parentCategoryId;
	private $categoryHighlight;
	private $browseType;
	private $childCategories;

	public function __construct($category) {
		if(is_array($category)) {
			$this->category = $category;
			if(isset( $category["categoryId"]))
			$this->categoryId = $category["categoryId"];
			if(isset($category["categoryName"]))
			$this->categoryName = $category["categoryName"];
			if(isset($category["parentCategoryId"]))
			$this->parentCategoryId = $category["parentCategoryId"];
			if(isset($category ["categoryHighlight"]))
			$this->categoryHighlight = $category ["categoryHighlight"];
			if(isset($category["browseType"]))
			$this->browseType = $category["browseType"];

			if(isset($category["childCategories"])) {
				if(is_array($category["childCategories"])) {
					foreach ($category["childCategories"] as $value) {
						$this->childCategories = new Macys_Api_V2_Catalog_Category_CategoryPages($value);
					}
				}
			}
		$this->getNavigatableCategory($this->categoryId);
		}
	}
	
	
	public function getNavigatableCategory($id) {
		$page = array (
		
		
		);
		return $page;
	}

}